package io;

import java.io.File;

public class Demo4 {
    public static void main(String[] args) {
        File source=new File("C:/test1");
        File destination=new File("C:/test2/test1");
        source.renameTo(destination);
    }
}
